/**
 * ...
 * @author Franco Ponticelli
 */

package uform.ui.comp;
import uform.property.IProperty;
import uform.property.Property;
import uform.ui.comp.Control;
import uform.ui.comp.Component;
import uform.util.DateGranularity;

class DateControl extends Control<Date>
{
	public var granularity(default, null) : IProperty<DateGranularity>;
	public function new(name : String, ?value : Date, ?granularity : DateGranularity)
	{
		super(name, value);
		this.granularity = new Property(granularity == null ? DateGranularity.Day : granularity);
	}
}